package dlg.code.builder;

/**
 * 指挥者
 */
public class Director {

    public Product getProduct(AbstractBuilder builder) {
        builder.setName("DS");
        builder.setWidth("60");
        builder.setHeight("80");
        return builder.getProduct();
    }

    public static void main(String[] args) {
        Director director = new Director();
        Product product = director.getProduct(new ConcreteBuilder());
        System.out.println("product = " + product);
    }

}
